<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Twitter Web Client</title>
</head>

<body>
	<form method="GET" action="/search">
		Type in the twitter account screen name to list user timeline: 
		<input type="text" name="screenName" value="${screenName}" /> 
		<input type="submit" value="Submit" />
	</form>

	<br/>
	
	<table>
	<c:forEach items="${tweets}" var="tweet">
		<tr>
			<td>${tweet.id}</td>
			<td>${tweet.createdAt}</td>
			<td>${tweet.text}</td>
		</tr>
	</c:forEach>
	</table>
</body>

</html>